package cn.com.taiji.oospub.wechat.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 
 * @since 2020-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class FoodBaseInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("ID")
    private String id;

    @TableField("School_Id")
    private String schoolId;

    @TableField("Category_Id")
    private String categoryId;

    @TableField("Name_Zh")
    private String nameZh;

    @TableField("Name_En")
    private String nameEn;

    @TableField("Food_Pic")
    private String foodPic;

    @TableField("Food_Type")
    private String foodType;

    @TableField("Status")
    private FoodStatus Status;

    @TableField("List_Num")
    private Double listNum;

    @TableField("Remark")
    private String Remark;

    @TableField("Creator")
    private String Creator;

    @TableField("Create_Time")
    private LocalDateTime createTime;

    private String code;

    private String packspec;

    private String unit;

    private String isBind;

    private String brand;

    private Double weight;

    private String lwh;

    private String packlist;

    private String serviceRemark;

    private String serviceTel;

    private String logisticsRemark;

    private String showProperty;

    private String otherProperty;

    private String holdPeriod;

    //临时字段
    @TableField(exist = false)
    private String foodIds;
    @TableField(exist = false)
    private String marketPriceStr;
    @TableField(exist = false)
    private String priceStr;
    @TableField(exist = false)
    private String maxNumStr;
    @TableField(exist = false)
    private Double foodPrice;


    public enum FoodStatus
    {
        NORMAL("正常") {},
        INVALID("禁用") {};

        @JsonValue
        private String value;

        private FoodStatus(String value)
        {
            this.value = value;
        }

        public String getValue()
        {
            return value;
        }

    }




}
